package com.zzg.service;


import java.util.List;
import java.util.Map;

import com.zzg.dao.InformDao;
import com.zzg.entity.inform;

public class InformService {
	InformDao informdao = new InformDao();
	public void add(inform inform) {
		informdao.insert(inform);	
	}
	public void edit(inform inform) {
		informdao.edit(inform);
	}
	public List<Map<String, Object>> findAll(int index,int pageSize,String key,String aname,String role) {
		return informdao.findAll(index,pageSize,key,aname,role);
	}
	public List<Map<String, Object>> findById(Integer id) {
	
		return informdao.findById(id);
	}
	public List<Map<String, Object>> findCount(String key,String aname,String role) {
		return informdao.findCount(key,aname,role);
	}
	
	public List<Map<String, Object>> findById(String id) {
		return informdao.findById(id);
	}
	
	public void delById(String id) {
		informdao.delById(id);
		
	}
	//删除多条记录
	public void deleteMore(String ids[]){
		informdao.delete(ids);
	}
}
